﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NF_Web.Event;
using NF_Base;
using NF_Tools;

namespace NF_Web
{
    public partial class frmMenuList : FrmShow
    {
        public frmMenuList()
        {
            InitializeComponent();
            bF_TitleMenu1.DafuteImage = global::NF_Web.Properties.Resources.active;
            bF_TitleMenu2.DafuteImage = global::NF_Web.Properties.Resources.sum;
            bF_TitleMenu3.DafuteImage = global::NF_Web.Properties.Resources.sum;
            bF_TitleMenu1.IsFocus = 
            bF_TitleMenu2.IsFocus = 
            bF_TitleMenu4.IsFocus = 
            bF_TitleMenu5.IsFocus =
            bF_TitleMenu6.IsFocus =
            bF_TitleMenu7.IsFocus =
            bF_TitleMenu8.IsFocus =
            bF_TitleMenu9.IsFocus=
            bF_TitleMenu10.IsFocus=
            bF_TitleMenu11.IsFocus=
            bF_TitleMenu3.IsFocus = false;
      }

        /// <summary>
        /// LODE
        /// </summary>
        private void frmMenuList_Load(object sender, EventArgs e)
        {
            //if (BaseClass.us.IsStaff !=0)
            //{
            //    bF_TitleMenu5.Visible = false;
            //    bF_TitleMenu10.Visible = false;
            //}

        }
        private void MenuClick(object sender, EventArgs e)
        {
            BF_TitleMenu ti = sender as BF_TitleMenu;
            MenuEvent.OpenNewFromInMDI(Convert.ToInt32(ti.Tag));
            this.Close();
        }

        private void frmMenuList_FormClosed(object sender, FormClosedEventArgs e)
        {
            MenuEvent.ChangeState();
        }



    }

}
